﻿using System;

namespace Esponce.QRCode.Content
{
	public interface IContentFormat
	{
		/// <summary>
		/// When implemented parses the content.
		/// </summary>
		/// <param name="content">Content of a specific syntax.</param>
		void Parse(string content);

		/// <summary>
		/// When implemented builds the content.
		/// </summary>
		/// <returns>Returns formatted content.</returns>
		string Build();

		/// <summary>
		/// When implemented gets a friendly name to display to user.
		/// </summary>
		/// <returns>Returns user-friendly name.</returns>
		string GetFriendlyName();
	}
}
